package com.spring.security.app.config;

/**
 * jwt配置
 *
 * @author seabed_moon
 */
/*
@Configuration
public class JwtTokenConfig {

    @Autowired
    private SecurityProperties securityProperties;


    @Bean
    public JwtAccessTokenConverter jwtAccessTokenConverter() {
        JwtAccessTokenConverter jwtAccessTokenConverter = new JwtAccessTokenConverter();
        jwtAccessTokenConverter.setSigningKey(securityProperties.getOauth2().getJwtSigningKey());

        return jwtAccessTokenConverter;
    }

    @Bean
    @ConditionalOnProperty(prefix = "sunlands.security.oauth2", name = "storeType", havingValue = "jwt", matchIfMissing = true)
    public TokenStore jwtTokenStore() {
        return new JwtTokenStore(jwtAccessTokenConverter());
    }

    @Bean
    @ConditionalOnMissingBean(name = "jwtTokenEnhancer")
    public TokenEnhancer jwtTokenEnhancer(){
        return new SunLandJwtTokenEnhancer();
    }
}
*/
